#rating-confidences .output-label>div:not(:first-child) {
    cursor: pointer;
}

#tag-confidences .output-label>div:not(:first-child) {
    cursor: pointer;
}

#rating-confidences .output-label>div:not(:first-child):hover {
    foreground-color: #f5f5f5;
}

#tag-confidences .output-label>div:not(:first-child):hover {
    foreground-color: #f5f5f5;
}

#rating-confidences .output-label>div:not(:first-child):active {
    foreground-color: #e6e6e6;
}

#tag-confidences .output-label>div:not(:first-child):active {
    foreground-color: #e6e6e6;
}

#discard-tag-confidences .output-label>div:not(:first-child) {
    cursor: pointer;
}

#discard-tag-confidences .output-label>div:not(:first-child):hover {
    foreground-color: #f5f5f5;
}

#discard-tag-confidences .output-label>div:not(:first-child):active {
    foreground-color: #e6e6e6;
}
#tags a {
    font-weight: inherit;
    color: #888;
}
#tags a:hover {
    color: #f5f5f5;
}

#gallery-container {
    display: flex;
    flex-direction: column;
}

#gallery-container > .gradio-row {
    flex: 1;
}

#gallery {
    height: 800px;
    margin-bottom: 0;
}

#tag-editor {
    height: 800px !important;
    overflow: hidden !important;
}

#tag-editor > .wrap {
    max-height: calc(800px - 40px) !important; 
    overflow-y: auto !important;
    padding-right: 8px;
}

#tag-editor label {
    padding: 4px 0;
    margin: 2px 0;
}

#tag-editor > .scroll-hide {
    overflow: hidden !important;
}

#tag-editor > .wrap::-webkit-scrollbar {
    width: 6px;
}

#tag-editor > .wrap::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#tag-editor > .wrap::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#tag-editor > .wrap::-webkit-scrollbar-thumb:hover {
    background: #555;
}
